From 661e422af8358828daf1f83467375ae991f00e75 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 14 Sep 2007 16:05:39 +0100 Subject: [PATCH] Fix 'xm reboot' Signed-off-by: Jim Fehlig --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 65e38f82d5..ccd4012a60 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2167,7 +2167,7 @@ class XendDomainInfo: raise VmError('Invalid VM Name') dom = XendDomain.instance().domain_lookup_nr(name) - if dom and dom.domid != self.domid: + if dom and dom.domid and dom.domid != self.domid: raise VmError("VM name '%s' already exists%s" % (name, dom.domid is not None and -- 2.30.2